% Margins ------------------------------------------
\usepackage[margin=1.5in]{geometry}

% Line Spacing -------------------------------------
\renewcommand{\baselinestretch}{1.5}

% Font ---------------------------------------------

\usepackage{utopia}
\usepackage[utopia, smallerops, varg]{newtxmath}
% \usepackage{cabin}
% \usepackage[libertine]{newtxmath}

% Small adjustments to text kerning
\usepackage{microtype}

% Remove annoying over-full box warnings -----------
\vfuzz2pt 
\hfuzz2pt

% Color Palette ------------------------------------
\usepackage{xcolor}

% https://www.materialpalette.com/colors
\definecolor{red}{HTML}{c62828}
\definecolor{orange}{HTML}{ef6c00}
\definecolor{green}{HTML}{2e7d32}
\definecolor{blue}{HTML}{1565c0}
\definecolor{purple}{HTML}{283593}
\definecolor{maroon}{HTML}{AF3335}
\definecolor{dark-maroon}{HTML}{5D0F0D}
\definecolor{teal}{HTML}{00695c}
\definecolor{bluegrey}{HTML}{455a64}
\definecolor{indigo}{HTML}{1A237E}
\definecolor{navyblue}{HTML}{0A3044}
\definecolor{bluegreen}{HTML}{4A8676}
\definecolor{Black}{HTML}{000000}

% CU Boulder colors
\definecolor{buff-gold}{HTML}{CFB87C}
\definecolor{buff-grey}{HTML}{565A5C}
\definecolor{buff-lightgrey}{HTML}{A2A4A3}
\definecolor{buff-black}{HTML}{000000}


% Hyperlinks ---------------------------------------
\usepackage{hyperref}
\hypersetup{
    colorlinks= true,
    bookmarks = true,
    citecolor= dark-maroon,
    linkcolor= dark-maroon,
    filecolor= dark-maroon,      
    urlcolor= dark-maroon,
}

% Enumerate/Itemize --------------------------------
\usepackage{enumitem}
\setlist[itemize]{label= \textbullet}

% Section and Subsection Styling -------------------
\usepackage{titlesec}

\titleformat{\section}
  {\Large \bf \color{navyblue}}
  {\thesection.}
  {1em}
  {}
  
\titleformat{\subsection}
  {\fontsize{11}{10}\it}
  {\thesubsection.}
  {1em}
  {}

% Better Abstract ----------------------------------
\renewenvironment{abstract}
{
  \centerline
  {\large \bfseries \scshape \color{navyblue} Abstract}
  \begin{quote}
}
{
  \end{quote}
}

% AMS ----------------------------------------------
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{graphics}


% Table and Figure labelling -----------------------
\usepackage{caption}

\DeclareCaptionLabelSeparator{threesdash}{\,---\,}
\DeclareCaptionLabelSeparator{period}{\,---\,}
\captionsetup[table]{format=plain,labelsep= threesdash}
\captionsetup[figure]{format=plain, labelsep= period}


% Tables -------------------------------------------

% Tables too big
% \begin{adjustbox}{width = 1.2\textwidth, center}
\usepackage{adjustbox}
\usepackage{array}

% Tables too narrow
% \begin{tabularx}{\linewidth}{cols}
% col-types: X - center, L - left, R -right
% Relative scale: >{\hsize=.8\hsize}X/L/R
\usepackage{tabularx}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
\newcolumntype{R}{>{\raggedleft\arraybackslash}X}


% Define Theorems ----------------------------------
% note, theorem is the name that goes in \begin{} and Theorem is the name displayed as Theorem 1
\newtheorem{theorem}{Theorem}


% --------------------------------------------------